package cn.iocoder.yudao.module.shop.controller.admin.store.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * 库存 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class StoreBaseVO {

    @Schema(description = "名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotNull(message = "名字不能为空")
    private String name;

    @Schema(description = "code", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    private String code;

    @Schema(description = "商品图片", example = "https://www.iocoder.cn")
    private String picUrl;

    @Schema(description = "市场价", requiredMode = Schema.RequiredMode.REQUIRED, example = "9142")
    @NotNull(message = "市场价不能为空")
    private Integer marketPrice;

    @Schema(description = "成本价", requiredMode = Schema.RequiredMode.REQUIRED, example = "19986")
    @NotNull(message = "成本价不能为空")
    private Integer costPrice;

    @Schema(description = "单位", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "单位不能为空")
    private String unit;

    @Schema(description = "当前库存", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "库存数量不能为空")
    private Integer num;

    @Schema(description = "预警库存", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "预警库存不能为空")
    private Integer warningNum;

}
